package org.x.usermod.mapper;

import com.mybatisflex.core.query.QueryWrapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.x.usermod.entity.SysRoleUser;
import com.mybatisflex.core.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 用户角色关联表 映射层。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
@Mapper
public interface SysRoleUserMapper extends BaseMapper<SysRoleUser> {

    @Delete("DELETE FROM sys_role_user WHERE user_id = #{userId}")
    int deleteByUserId(@Param("userId") Long userId);


}
